package com.yzl.factory.abs.wechat;

import com.yzl.factory.Pay;
import com.yzl.factory.WechatPay;
import com.yzl.factory.abs.OrderFactory;
import com.yzl.factory.abs.RefundFactory;

/**
 * @program: design-pattern
 * @description:
 * @author: YaoZhiLi
 * @create: 2021-08-02 23:35
 */
public class WechatOrderFactory implements OrderFactory {
    @Override
    public Pay createPay() {
        return new WechatPay();
    }

    @Override
    public RefundFactory createRefund() {
        return new WechatRefund();
    }
}